@extends('layout.backend_iframe')

@section("main-content")

    <!-- 面包屑组件start  -->
    @component('component/crumb',['icon' => 'fa-dashboard', 'title' => '权限管理/管理员列表' ])
    @endcomponent
    <!-- 面包屑组件end  -->

    <div id="main">
        <!--  提示组件 start -->
        @component('component/tips')
            <p>针对每个管理员对应一个角色组，不同的管理员有不同的操作权限</p>
    @endcomponent
    <!--  提示组件 end -->

        <!-- 搜索功能 start  -->
        <div class="" style="margin-top:20px">
            @include('backend.auth.admin._search')
        </div>
        <!--  提示功能 end -->
        <div class="tbl-list">
            <!-- 操作按钮 start  -->
            <div id="act-btn" style="padding:20px 0">
                <button class="btn btn-white btn-refresh"><i class="iconfont icon-refresh5"></i> &nbsp;刷新</button>
                &nbsp;
                <button data-area="['50%', '70%']" data-url="{{URL::asset('/auth/admin/form')}}" data-title = "新建" class="btn-dialog btn btn-primary btn-sm btn-3F51B5 btn-add">
                    <i class="act-btn-add iconfont icon-plus15"></i>
                    &nbsp;新建
                </button>
                &nbsp;
                <button class="btn btn-danger btn-delete" data-url="{{URL::asset('/auth/admin')}}/deletes">
                    <i class="iconfont icon-delete14"></i> &nbsp;删除
                </button>
                @component('component/act_btn/import',['import_url' => URL::asset('/auth/admin')."/import", 'template_url' => URL::asset('/auth/admin')."/export/temp"])
                @endcomponent
                &nbsp;
                <button  data-url="{{URL::asset('/auth/admin')}}/export" data-title = "导出" class="btn btn-primary btn-sm btn-3F51B5 btn-export">
                    <i class="act-btn-export iconfont icon-export4"></i>
                    &nbsp;导出
                </button>
            </div>
            <!-- 操作按钮 end  -->

            <!-- 列表start  -->
            <div id="table">
                <table class="no-border-table" data-url="/auth/admin/list">
                    <thead>
                    <tr class="table-head">
                        <td width="5%">
                            @component('component/checkbox',['checkbox'=>[''],'name'=>['checkall'],'custom_class'=>"checkall checkall-2 checkbox"])
                            @endcomponent
                        </td>
                        <td>用户名</td>
                        <td>昵称</td>
                        <td>所属角色</td>
                        <td>Email</td>
                        <td>状态</td>
                        <td>创建时间</td>
                        <td>上次登录时间</td>
                        <td>操作</td>
                    </tr>
                    </thead>
                    <tbody class="tbl-content">

                    </tbody>
                </table>
                <div style="display: flex;line-height: 56px">
                    <div class="btn-opt" style="width:50%;padding-left:2.4%">

                    </div>
                    @component('component/paginate',['limit' => \Config::get('pageLimit'), 'style' => $sys_setting['paginate_type'] ?? ''])
                    @endcomponent
                </div>

            </div>
            <!-- 列表end    -->
        </div>
    </div>


@endsection
<!---  引入当前页需使用的js  -->
@section("js-file")
@endsection
